package cn.ibizlab.odoo.core.odoo_stock.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_stock.domain.Stock_inventory;
import cn.ibizlab.odoo.core.odoo_stock.filter.Stock_inventorySearchContext;

/**
 * 实体[Stock_inventory] 服务对象接口
 */

public interface IStock_inventoryService{
     boolean create(Stock_inventory stock_inventory) ;
     Stock_inventory get(Integer id) ;
     Stock_inventory get(Stock_inventory stock_inventory) ;
     boolean update(Stock_inventory stock_inventory) ;
     void createBatch(List<Stock_inventory> stock_inventorys, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;
     void updateBatch(List<Stock_inventory> stock_inventorys, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Stock_inventory> searchDefault(Stock_inventorySearchContext context) ;

    /**
     * 根据产品种类查询
     */
     Page<Stock_inventory> selectByOdoo_category(Integer id) ;

    /**
     * 根据产品查询
     */
     Page<Stock_inventory> selectByOdoo_product(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Stock_inventory> selectByOdoo_company(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Stock_inventory> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Stock_inventory> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Stock_inventory> selectByOdoo_write(Integer id) ;

    /**
     * 根据库存位置查询
     */
     Page<Stock_inventory> selectByOdoo_location(Integer id) ;

    /**
     * 根据批次/序列号查询
     */
     Page<Stock_inventory> selectByOdoo_lot(Integer id) ;

    /**
     * 根据包裹查询
     */
     Page<Stock_inventory> selectByOdoo_package(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Stock_inventory convert2Domain(cn.ibizlab.odoo.core.client.model.Istock_inventory model ,Stock_inventory domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Istock_inventory convert2Model(Stock_inventory domain , cn.ibizlab.odoo.core.client.model.Istock_inventory model);

}
